package com.ftg.learn.lesson6.exam02.manytomany;

/**
 * 渣男
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/7/3 上午9:05
 */
public class ZhaNan extends Man {

    Women[] ws;

    public ZhaNan(Women[] ws){
        this.ws = ws;
    }

    public static void main(String[] args) {
        Women[] ws = new Women[3];
        Man[] ms = new Man[2];

        ws[0] = new Women();
        ws[1] = new HaiNv(ms);
        ws[2] = new HaiNv(ms);

        ZhaNan lth = new ZhaNan(ws);
        // 耦合度

        //多对多的第二种方案

        //通过第三方来管理 他们的关系
    }

}
